<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
                xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf in action</title>
</head>
<body>
<div th:replace="~{fragments/header :: header}"></div>
<h3 th:text="${title}">waylau</h3>
<div th:object="${user}">
    <p><strong>ID:</strong><span th:text="*{id} "></span></p>
    <p><strong>Name:</strong><span th:text="*{name} "></span></p>
    <p><strong>Email:</strong><span th:text="*{email} "></span></p>
</div>
<div>
    <a th:href="@{'/users/delete/'+${user.id}}">删除</a>
    <a th:href="@{'/users/modify/'+${user.id}}">修改</a>
</div>
<div th:replace="~{fragments/footer :: footer}"></div>
</body>
</html>